import { createApp } from "vue";
import App from "./App.vue";

//引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//配置element-plus国际化
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//引入模版的全局样式
import "@/styles/index.scss"
//svg插件需要配置代码
import 'virtual:svg-icons-register'
//引入自定义插件对象：注册整个项目全局组件
import gloablComponent from '@/components'
//注册模版路由
import router from "./router";
//引入pinia
import pinia from "./store";
//引入路由鉴权文件
import './permisstion'
const app = createApp(App)
// app.use(ElementPlus)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(gloablComponent);
app.use(router)
app.use(pinia)
app.mount('#app')

// createApp(App).mount("#app");
